package com.hui.xiao.xiaohui.intent;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

import com.hui.xiao.xiaohui.R;

/**
 * Created by Administrator on 2016/5/29.
 */
public class IntentTab extends TabActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.intent_tab);
        TabHost tabHost = getTabHost();
        tabHost.addTab(tabHost
                        .newTabSpec("tab1")
                        .setIndicator("已接电话", getResources().getDrawable(R.drawable.aboc_s))
                        .setContent(new Intent(this, BeCalledActivity.class))
        );
        tabHost.addTab(tabHost.newTabSpec("tab2")
                        .setIndicator("呼出电话")
                        .setContent(new Intent(this, CalledActivity.class))
        );
    }
}
